<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="/statics/js/flexible.js"></script>
    <title>医院管理</title>
    <link rel="stylesheet" href="/statics/css/bootstrap.min.css">
    <link rel="stylesheet" href="/statics/css/common.css">
    <link rel="stylesheet" href="/statics/css/complain_blacklist.css">
</head>
<body>

<div class="container-fluid container-fluid-padding text-center">
    <div style="font-size: 0.42666666rem;">黑名单设置</div>
    <?php if($have_permission){?>
    <div id="complain_accessibility">添加</div>
    <?php }else{?>
    <div id="complain_accessibility2">申请权限</div>
    <?php }?>
</div>
<!--黑名单列表  开始-->
<div class="define-blacklist define-active container-fluid text-center">
    <?php if($blackData){foreach($blackData as $val){ ?>
    <div class="row" data_row_id="<?=$val['patient_id']?>">
        <div class="col-xs-9 text-left">
            <img src="<?=$val['head_img']?>" alt="">
            <span><?=$val['patient_name']?></span>
        </div>
        <div class="col-xs-3 text-right">
            <button type="button" class="btn btn-default">移除</button>
        </div>
    </div>
    <?php }}?>
</div>

<!--黑名单列表  结束-->
<?php if(!$permission_check){?>
<!--  暂无黑名单人员  开始-->
<div class="define-blacklist-nopeople text-center">
    <div><img src="/statics/images/complain_blacklist_nopeople.png" alt="暂无黑名单人员"></div>
    <div>暂无黑名单人员</div>
</div>
<!--  暂无黑名单人员  结束-->
<?php }?>
<!--审核中  开始-->
<div class="define-under-review <?php if(!$permission_check){?>define-active<?php }?> text-center">审核中...</div>
<!--审核中  结束-->

<!--添加人员弹窗  开始-->
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><img
                        src="/statics/images/complain_blacklist_close.png" alt=""></button>
                <h4 class="modal-title text-center" id="myModalLabel">添加人员</h4>
            </div>
            <div class="modal-body">
                <div class="row" id="define-input">
                    <div class="col-xs-9"><input id="define-input-value" type="text"></div>
                    <div class="col-xs-3" id="define-search">
                        <div>搜索</div>
                    </div>
                </div>
                <div id="define-search-list" class="define-active">
                    <table class="table">
                        <!--<tr>
                            <td><img src="/statics/images/complain_center_blacklist_picker_1.jpg" alt=""></td>
                            <td>刘谋</td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><img src="/statics/images/complain_center_blacklist_picker_2.jpg" alt=""></td>
                            <td>谢芳芳</td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><img src="/statics/images/complain_center_blacklist_picker_3.jpg" alt=""></td>
                            <td>张柏仁</td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><img src="/statics/images/complain_center_blacklist_picker_1.jpg" alt=""></td>
                            <td>李范德</td>
                            <td></td>
                        </tr>
                        <tr>
                            <td><img src="/statics/images/complain_center_blacklist_picker_2.jpg" alt=""></td>
                            <td>习集科</td>
                            <td></td>
                        </tr>-->
                        <script type="text/html" id="table_temp">
                            {{each data}}
                            <tr style="border-bottom: 1px solid #e6e6e6;">
                                {{if $value.head_img == ''}}
                                <td style="padding: 0.28rem 0;"><img
                                        src="/statics/images/complain_center_blacklist_picker_2.jpg" alt=""></td>
                                {{else}}
                                <td style="padding: 0.28rem 0;"><img src="{{$value.head_img}}" alt=""></td>
                                {{/if}}
                                <td data_id="{{$value.patient_id}}">{{$value.patient_name}}</td>
                                <td></td>
                            </tr>
                            {{/each}}
                        </script>
                    </table>
                </div>
            </div>
            <div class="modal-footer">
                <div>提交</div>
            </div>
        </div>
    </div>
</div>
<!--添加人员弹窗  结束-->
<script type="text/javascript" src="/statics/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="/statics/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/statics/js/template-web.js"></script>
<script type="text/javascript" src="/statics/js/complain_blacklist.js"></script>
</body>
</html>